package myschool.myshchool15.homework;

import java.util.Scanner;
/**求1-100之间不能被3整除的数之和*/
public class SumSan {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        double sum = 0;
        for(double i = 0; i <= 100 ; i++){
            if((i%3) != 0 ){
                sum = sum+i;
            }
        }
        System.out.println("1-100之间不能被3整除的数之和为："+sum);
    }
}
